package org.dromara.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.system.domain.SysChatGroupMember;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户消息标记视图对象 sys_group_member
 *
 * @author Lion Li
 * @date 2025-02-25
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysChatGroupMember.class)
public class SysChatGroupMemberVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户状态ID
     */
    @ExcelProperty(value = "用户状态ID")
    private Long id;

    /**
     * 标记人uid
     */
    @ExcelProperty(value = "标记人uid")
    private Long uid;

    /**
     * 群组ID
     */
    @ExcelProperty(value = "群组ID")
    private Long groupId;

    /**
     * 群昵称
     */
    @ExcelProperty(value = "群昵称")
    private String nickname;

    /**
     * 群成员类型（1：群主、2：管理员、3：普通成员）
     */
    @ExcelProperty(value = "群成员类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=：群主、2：管理员、3：普通成员")
    private Long roleType;

    /**
     * 群备注
     */
    @ExcelProperty(value = "群备注")
    private String remark;

}
